from django.conf.urls import url, include
from . import views
urlpatterns = [
    #首页类视图
    url(r'^$', views.IndexView.as_view(), name='index'),
    #用户注册页面
    url(r'^register/$', views.RegisterView.as_view(), name='register'),
    #登录页面
    url(r'^login/$', views.LoginView.as_view(), name='login'),
    #退出页面
    url(r'^logout/$', views.LogoutView.as_view(), name='logout'),
    #忘记密码
    url(r'^forget/$', views.ForgetPwdView.as_view(), name='forget_pwd'),
    #重置密码
    url(r'^reset/.*', views.ResetView.as_view(), name='reset_pwd'),
    #修改密码
    url(r'^modify/$', views.ModifyView.as_view(), name='modify_pwd'),
    #用户中心,个人资料,修改用户信息
    url(r'^users/info/$', views.UserInfoView.as_view(), name='user_info'),
    #用户中心,修改头像图片
    url(r'^users/image/upload/$', views.UploadImageView.as_view(), name='image_upload'),
    #用户中心,我的课程
    url(r'^users/mycourse/$', views.MyCourseView.as_view(), name='mycourse'),
    #用户中心,我的收藏
    url(r'^users/myfav/org/$', views.MyFavOrgView.as_view(), name='myfav_org'),
    #用户中心,授课教师
    url(r'^users/myfav/teacher/$', views.MyFavTeacherView.as_view(), name='myfav_teacher'),
    #用户中心,公开课程
    url(r'^users/myfav/course/$', views.MyFavCourseView.as_view(), name='myfav_course'),
    #用户中心,我的消息
    url(r'^mymessage/$', views.MyMessageView.as_view(), name='mymessage'),


]
